/**
 * Created with Intellij IDEA.
 * Description;
 * User:墨琦
 * Data:2023-02-28
 * Time:14:55
 */
public class Text {
    public static void main(String[] args) {
    Team fw=new Team("汤琦",42);
    fw.setGrade(70,80,90);
    fw.setAge(22);
    Team.classroom="7班";
    Team kk=new Team();
    System.out.println("班级"+kk.classroom+"姓名"+fw.getName()+"序号"+fw.getNum()+"成绩"+fw.getGrade()+"年龄"+fw.getAge());

    }
}
class Team{
    private String name;
    private int age;
    private int num;
    private int grade;
    public static String classroom;
    public Team()
    {

    }
    public Team(String names,int nums)
    {
        name=names;
        num=nums;
    }

    public int getNum() {
        return num;
    }
    public String getName()
    {
        return name;
    }

    public int getGrade() {
        return grade;
    }
    public void setGrade(int English,int Chinese,int math) {
        this.grade = English+Chinese+math;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}